<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<meta charset="UTF-8">
		<title><?php echo $_SESSION[SESS_CONFIG][DicKey::TitleName[XPHEnum::Value]]['dic_value'] ?></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<!--加载header文件-->
		<?php
			include_once 'public/views/header.php';
		?>
		<script src="public/home/js/function.js"></script>
		<script src="public/home/js/index.js"></script>
		<style>
		    body{
		    	background-color: white;
		    	padding-bottom:20px;
		    	max-width:400px;
		    	margin:auto;
		    }
			a,a:link,a:visited,a:hover,a:active{
				text-decoration: none;
				color:#333;
			}
		    /*顶部，标题*/
		    .head{
		    	width: 100%;
		    	height: 60px;
		    	background: #f2f2f2;
		    }
		    .head .col-xs-3,.head .col-xs-6{
		    	height:60px;
		    }
		    .head .col-xs-6{
		    	text-align: center;
		    }
		    .head .col-xs-3 img{
		    	height: 26px;
		    	width: 30px;
		    	margin-top: 17px;
		    }
		    .head .col-xs-6 img{
		    	height: 50px;
		    	width: auto;
		    	margin-top: 5px;
		    }
			
			/*目录标题*/
			.title{
				height:60px;
				line-height: 60px;
				width:88%;
				margin-left: 6%;
				font-size:17px;
				color:#333;
				font-weight:600;
				border-bottom:1px solid #F4F4F4;
			}
			.title i{
				font-size: 30px;
				margin-right: 5px;
				position: relative;
				top:4px;
				display: none;
			}
			/*目录（包括一级二级）*/
			.menu,.sub-menu{
				width:88%;
				margin-left: 6%;
				height:auto;
			}
			.menu-item{
				width:100%;
				height:50px;
				line-height: 50px;
				color:#333;
				font-size: 15px;
				border-bottom: 1px solid #F4F4F4;
				font-weight: 600;
			}
			.menu-item i{
				float: right;
				font-size: 24px;
				margin-top: 13px;
			}
			.sub-menu{
				display: none;
			}
			/*底部小菜单*/
			.small-menu{
				width:88%;
				margin-left: 6%;
				margin-top: 40px;
			}
			.small-menu .menu-item{
				width:100%;
				height:40px;
				line-height: 40px;
				color:#333;
				text-decoration: none;
				font-weight: 600;
				font-size: 15px;
				border:none;
			}
			.small-menu .menu-item img{
				height: 20px;
				width:20px;
				margin-right: 5px;
				position: relative;
				top:-3px;
			}
			
			.close-index{
				display: none;
				height:20px;
				width:20px;
				position: relative;
				top:-2px;
			}
		</style>
	</head>
	<body>
		<div class="head">
			<div class="col-xs-3"></div>
			<div class="col-xs-6"><img src="<?php echo $_SESSION[SESS_CONFIG][DicKey::Logo[XPHEnum::Value]]['dic_value'] ?>" alt=""></div>
			<div class="col-xs-3"></div>
		</div>
		<!-- 目录标题 -->
		<div class="title">
			<img src="public/home/images/mft.png" alt="" class="close-index">
			<i class="fa fa-angle-left" aria-hidden="true"></i>
			<lable>目录</lable>
		</div>
		<!-- 一级目录 -->
		<div class="menu">
			<?php foreach ($menu as $k => $v): ?>
			<div class="menu-item" data-href="<?php echo estr($v,'href'); ?>" data-index="<?php echo $k; ?>">
				<lable><?php echo $v['name'] ?></lable>
				<i class="fa fa-angle-right" aria-hidden="true"></i>
			</div>	
			<?php endforeach; ?>
		</div>
		<!-- 二级目录 -->
		<?php foreach ($menu as $k => $v): ?>
		<div class="sub-menu sub-menu-<?php echo $k ?>">
			<?php if(isset($v['_child'])): ?>
			<?php foreach ($v['_child'] as $k1 => $v1): ?>
			<div class="menu-item" data-href="<?php echo estr($v1,'href'); ?>">
				<lable><?php echo $v1['name'] ?></lable>
				<i class="fa fa-angle-right" aria-hidden="true"></i>
			</div>	
			<?php endforeach; ?>
			<?php endif; ?>
		</div>
		<?php endforeach ?>

		<!-- 底部小菜单 -->
		<div class="small-menu">
			<div class="menu-item" data-href="Home/Product/myCollect?park_id=<?php echo $park_id ?>">
				<img src="public/home/images/menu1.png" alt="">
				<lable>我的收藏</lable>
			</div>
			<div class="menu-item" data-href="Home/Shop/shopList?park_id=<?php echo $park_id ?>">
				<img src="public/home/images/menu2.png" alt="">
				<lable>授权展厅</lable>
			</div>
		</div>



	</body>
</html>